﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace B.S.Infratrctrue.Migrations
{
    /// <inheritdoc />
    public partial class dhdhhd : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropPrimaryKey(
                name: "PK_Product_materials",
                table: "Product_materials");

            migrationBuilder.RenameTable(
                name: "Product_materials",
                newName: "product_material");

            migrationBuilder.AddPrimaryKey(
                name: "PK_product_material",
                table: "product_material",
                column: "Productid");
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropPrimaryKey(
                name: "PK_product_material",
                table: "product_material");

            migrationBuilder.RenameTable(
                name: "product_material",
                newName: "Product_materials");

            migrationBuilder.AddPrimaryKey(
                name: "PK_Product_materials",
                table: "Product_materials",
                column: "Productid");
        }
    }
}
